package com.example.demo.service.impl;

import com.example.demo.mapper.AddressMapper;
import com.example.demo.pojo.Address;
import com.example.demo.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {

    @Resource
    private AddressMapper addressMapper;
    @Override
    public List<Address> selectAddressById(int uid) {
        return addressMapper.selectAddressById(uid);
    }

    @Override
    public int addAddress(Address address) {
        return addressMapper.addAddress(address);
    }

    @Override
    public int updateAddress(Address address) {
        return addressMapper.updateAddress(address);
    }

    @Override
    public int delAddress(int id) {
        return addressMapper.delAddress(id);
    }
}
